﻿@model DistributeTransaction.Models.CardInfo
@{
    ViewBag.Title = "Delete";
}
<h2>
    Delete</h2>
<h3>
    Are you sure you want to delete this?</h3>
<fieldset>
    <legend>CardInfo</legend>
    <table class="noborder">
        <thead>
            <tr>
                <td class="noborder"/>
                <td class="noborder"/>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td class="noborder">
                    <div class="display-label-bold">
                        @Html.LabelFor(model => model.HoldName)</div>
                </td>
                <td class="noborder">
                    <div class="display-field">
                        @Html.DisplayFor(model => model.HoldName)
                    </div>
                </td>
            </tr>
            <tr>
                <td class="noborder">
                    <div class="display-label-bold">
                        @Html.LabelFor(model => model.CardNumber)</div>
                </td>
                <td class="noborder">
                    <div class="display-field">
                        @Html.DisplayFor(model => model.CardNumber)
                    </div>
                </td>
            </tr>
            <tr>
                <td class="noborder">
                    <div class="display-label-bold">
                         @Html.LabelFor(model => model.CardType)</div>
                </td>
                <td class="noborder">
                    <div class="display-field">
                        @Html.DisplayFor(model => model.CardType)
                    </div>
                </td>
            </tr>
            <tr>
                <td class="noborder">
                    <div class="display-label-bold">
                        @Html.LabelFor(model => model.ExpireDate)</div>
                </td>
                <td class="noborder">
                    <div class="display-field">
                        @Html.DisplayFor(model => model.ExpireDate)
                    </div>
                </td>
            </tr>
            <tr>
                <td class="noborder">
                    <div class="display-label-bold">
                        @Html.LabelFor(model => model.ValidCode)</div>
                </td>
                <td class="noborder">
                    <div class="display-field">
                        @Html.DisplayFor(model => model.ValidCode)
                    </div>
                </td>
            </tr>
        </tbody>
        <tfoot>
            <tr>
                <td class="noborder"/>
                <td class="noborder"/>
            </tr>
        </tfoot>
    </table>
</fieldset>
@using (Html.BeginForm())
{
    <p>
        <input type="submit" value="Delete" />
        <input type="button" id="btnCancel" value="Cancel" />
    </p>
}
<script type="text/javascript">
    $(document).ready(function () {
        $('#btnCancel').click(function () {
            window.location = '@Url.Content("~/Information")';
        });
    });
</script>
